/*
 * ConnectConfirmMessage.cpp
 *
 */

#include "ConnectConfirmMessage.h"

vsznDefault(ConnectConfirmMessage);

ConnectConfirmMessage::ConnectConfirmMessage()
{
	// Default constructor is
	// necessary for serialization
}

ConnectConfirmMessage::ConnectConfirmMessage(bool accepted, uint32_t nonce)  :
        nonce(nonce)
{
    if ( accepted )
    {
        this->accepted = ACCEPTED;
    }
    else
    {
        this->accepted = DENIED;
    }
}

ConnectConfirmMessage::ConnectConfirmMessage(ConnectConfirmMessage &other)
{
    assert(false);
}

ConnectConfirmMessage::~ConnectConfirmMessage()
{
}
